from flask import Flask, Blueprint, render_template, session, redirect, url_for, request, Response, jsonify
# 这里注意要导入models中的models，而不是extends中的models
from App.models import *

# 申明一个蓝图对象user
pagejumpblue = Blueprint('pagejumpblue', __name__)

# 实时监控界面
@pagejumpblue.route('/intimeMoni', methods=['GET', 'POST'])
def jumpToIntimeMoni():
    return render_template("intime-moni.html")


# 录像回放界面
@pagejumpblue.route('/backMoni', methods=['GET', 'POST'])
def jumpToBackMoni():
    return render_template("back-moni.html")


# 潜在危险警告界面
@pagejumpblue.route('/potentialDanger', methods=['GET', 'POST'])
def jumpToPotentialDanger():
    return render_template("potential-danger.html")


# 舍员空间界面
@pagejumpblue.route('/memberSpacing', methods=['GET', 'POST'])
def jumpToMemberSpacing():
    return render_template("member-spacing.html")


# 水电管控界面
@pagejumpblue.route('/waterElecMoni', methods=['GET', 'POST'])
def jumpToWaterElecMoni():
    return render_template("water-elec-moni.html")


# 寝室维修界面
@pagejumpblue.route('/roomService', methods=['GET', 'POST'])
def jumpToRoomService():
    return render_template("room-service.html")


# 温湿监控界面
@pagejumpblue.route('/tempHumidityMoni', methods=['GET', 'POST'])
def jumpToTempHumidityMoni():
    return render_template("temp-humidity-moni.html")


# 账号信息界面
@pagejumpblue.route('/personInfo', methods=['GET', 'POST'])
def jumpToPersonInfo():
    return render_template("person-info.html")


# 个人账单界面
@pagejumpblue.route('/personBill', methods=['GET', 'POST'])
def jumpToPersonBill():
    return render_template("person-bill.html")